package com.snailthink.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/encoding")
public class EncodingController {

    /**
     * 获取乱码问题处理
     * @return
     */
    @GetMapping("/getEncondTest1")
    public String getEncondTest1(String name, Model model) {
        model.addAttribute("msg",name);
        return "test";
    }
}
